package cn.kgc.client;

import cn.kgc.base.entity.CartSkuInfo;
import cn.kgc.commons.vo.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * <p></p>
 *
 * @author 李孟鸠
 * @since 2022/12/16 0016 上午 10:42
 */
@Component
@Slf4j
public class CartSkuInfoFeignClientImpl implements CartSkuInfoFeignClient {

    @Override
    public Result<CartSkuInfo> getCartSkuInfo(Long skuId) {
        log.warn("购物车模块获得商品信息，服务降级,商品的ID:{}",skuId);
        return Result.error
                (null,"http://mall-pms/pms/SkuInfo/getCart",200,"error");
    }
}
